package com.zjk.dao;

import com.zjk.pojo.Member;
import com.zjk.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberMapper {
    //根据用户名与密码查询用户
    Member getMemberNyMemberNameAndPwd(Member member);
    //用户列表
    List<Member> getAllMembers(@Param("name") String name);
    //根据id查询
    Member getMemberById(@Param("id") Integer id);
    //新增用户
    int addMember(Member member);

    //修改用户
    int editMember(Member member);
    //删除用户
    int delById(@Param("id") Integer id);
    //批量删除
    int delAll(@Param("ids")List<Integer> ids);
    //根据用户名查询
    Member getMemberByMemberName(String name);
}
